In mathematics, a matrix (: matrices) is a rectangular array of or other mathematical objects with elements or entries arranged in rows and columns, usually satisfying certain properties of Matrix addition and multiplication.
For example, denotes a matrix with two rows and three columns. This is often referred to as a "two-by-three matrix", a matrix, or a matrix of dimension .
In linear algebra, matrices are used as . In geometry, matrices are used for geometric transformations (for example rotations) and coordinate changes. In numerical analysis, many computational problems are solved by reducing them to a matrix computation, and this often involves computing with matrices of huge dimensions. Matrices are used in most areas of mathematics and scientific fields, either directly, or through their use in geometry and numerical analysis.
Square matrices, matrices with the same number of rows and columns, play a major role in matrix theory. The determinant of a square matrix is a number associated with the matrix, which is fundamental for the study of a square matrix. For example, a square matrix is invertible if and only if it has a nonzero determinant. Also, the of a square matrix are the roots of its characteristic polynomial, .
Matrix theory is the branch of mathematics that focuses on the study of matrices. It was initially a sub-branch of linear algebra, but soon grew to include subjects related to graph theory, algebra, combinatorics and statistics.
The numbers (or other objects) in the matrix are called its entries or its elements. The horizontal and vertical lines of entries in a matrix are respectively called rows and columns.
Matrices with a single row are called row matrix or row vectors, and those with a single column are called column matrix or column vectors. A matrix with the same number of rows and columns is called a square matrix. A matrix with an infinite number of rows or columns (or both) is called an infinite matrix. In some contexts, such as computer algebra programs, it is useful to consider a matrix with no rows or no columns, called an empty matrix.
Matrices are usually symbolized using upper-case letters (such as in the examples above), while the corresponding lower-case letters, with two subscript indices (e.g., , or ), represent the entries. In addition to using upper-case letters to symbolize matrices, many authors use a special typographical style, commonly boldface roman (non-italic), to further distinguish matrices from other mathematical objects. An alternative notation involves the use of a double-underline with the variable name, with or without boldface style, as in .
The entry in the th row and th column of a matrix is sometimes referred to as the or entry of the matrix, and commonly denoted by or . Alternative notations for that entry are and . For example, the entry of the following matrix is (also denoted , , or ):
Sometimes, the entries of a matrix can be defined by a formula such as . For example, each of the entries of the following matrix is determined by the formula .
In this case, the matrix itself is sometimes defined by that formula, within square brackets or double parentheses. For example, the matrix above is defined as or . If matrix size is , the above-mentioned formula is valid for any and any . This can be specified separately or indicated using as a subscript. For instance, the matrix above is , and can be defined as or .
Some programming languages utilize doubly subscripted arrays (or arrays of arrays) to represent an -by- matrix. Some programming languages start the numbering of array indexes at zero, in which case the entries of an matrix are indexed by and . This article follows the more common convention in mathematical writing where enumeration starts from .
The set of all -by- real matrices is often denoted , or . The set of all matrices over another field, or over a ring , is similarly denoted , or . If , such as in the case of square matrices, one does not repeat the dimension: , or . Often, , or , is used in place of .For example, for , see , p. 48; for , see , p. 50.
In this section, it is supposed that matrix entries belong to a fixed ring, which is typically a field of numbers.
For example,
Familiar properties of numbers extend to these operations on matrices: for example, addition is commutative, that is, the matrix sum does not depend on the order of the summands: .
Matrix subtraction is consistent with composition of matrix addition with scalar multiplication by :
The transpose is compatible with addition and scalar multiplication, as expressed by and . Finally, .
Matrix multiplication satisfies the rules (associativity), and as well as (left and right distributivity), whenever the size of the matrices is such that the various products are defined. The product may be defined without being defined, namely if and are and matrices, respectively, and Even if both products are defined, they generally need not be equal, that is:
In other words, matrix multiplication is not commutative, in marked contrast to (rational, real, or complex) numbers, whose product is independent of the order of the factors. An example of two matrices not commuting with each other is:
whereas
Besides the ordinary matrix multiplication just described, other less frequently used operations on matrices that can be considered forms of multiplication also exist, such as the Hadamard product and the Kronecker product. They arise in solving matrix equations such as the Sylvester equation.
The minors and cofactors of a matrix are found by computing the determinant of certain submatrices.
A principal submatrix is a square submatrix obtained by removing certain rows and columns. The definition varies from author to author. According to some authors, a principal submatrix is a submatrix in which the set of row indices that remain is the same as the set of column indices that remain. Other authors define a principal submatrix as one in which the first rows and columns, for some number , are the ones that remain; this type of submatrix has also been called a leading principal submatrix..
Using matrices, this can be solved more compactly than would be possible by writing out all the equations separately. If and the equations are independent, then this can be done by writing
where is the inverse matrix of . If has no inverse, solutions—if any—can be found using its generalized inverse.
For example, the matrix
can be viewed as the transform of the unit square into a parallelogram with vertices at , , , and . The parallelogram pictured at the right is obtained by multiplying with each of the column vectors , , , and in turn. These vectors define the vertices of the unit square. The following table shows several real matrices with the associated linear maps of . The original is mapped to the grid and shapes. The origin is marked with a black point.
Under the bijection between matrices and linear maps, matrix multiplication corresponds to composition of maps:. Note however that Greub follows a transposed convention of representing a transformation by multiplying a row vector by a matrix, rather than multiplying a matrix by a column vector, leading to the reversed order for the two matrices in the product that represents a composition. if a -by- matrix represents another linear map , then the composition is represented by since
The last equality follows from the above-mentioned associativity of matrix multiplication.
The rank of a matrix is the maximum number of linearly independent row vectors of the matrix, which is the same as the maximum number of linearly independent column vectors. Equivalently it is the Hamel dimension of the image of the linear map represented by . The rank–nullity theorem states that the dimension of the kernel of a matrix plus the rank equals the number of columns of the matrix.
Square matrices of a given dimension form a noncommutative ring, which is one of the most common examples of a noncommutative ring.
A scalar multiple of an identity matrix is called a scalar matrix.
By the spectral theorem, real symmetric matrices and complex Hermitian matrices have an eigenbasis; that is, every vector is expressible as a linear combination of eigenvectors. In both cases, all eigenvalues are real. This theorem can be generalized to infinite-dimensional situations related to matrices with infinitely many rows and columns.
There are many for testing whether a square matrix is invertible, and, if it is, computing its inverse. One of the oldest, which is still in common use is Gaussian elimination.
A symmetric matrix is positive-definite if and only if all its eigenvalues are positive, that is, the matrix is positive-semidefinite and it is invertible. The table at the right shows two possibilities for 2-by-2 matrices. The eigenvalues of a diagonal matrix are simply the entries along the diagonal, and so in these examples, the eigenvalues can be read directly from the matrices themselves. The first matrix has two eigenvalues that are both positive, while the second has one that is positive and another that is negative.
Allowing as input two different vectors instead yields the bilinear form associated to :
In the case of complex matrices, the same terminology and results apply, with symmetric matrix, quadratic form, bilinear form, and transpose replaced respectively by Hermitian matrix, Hermitian form, sesquilinear form, and conjugate transpose .
An orthogonal matrix is necessarily invertible (with inverse ), unitary matrix (), and normal matrix (). The determinant of any orthogonal matrix is either or . A special orthogonal matrix is an orthogonal matrix with determinant . As a linear transformation, every orthogonal matrix with determinant is a pure rotation without reflection, i.e., the transformation preserves the orientation of the transformed structure, while every orthogonal matrix with determinant reverses the orientation, i.e., is a composition of a pure reflection and a (possibly null) rotation. The identity matrices have determinant and are pure rotations by an angle zero.
The complex number analog of an orthogonal matrix is a unitary matrix.
The determinant of matrices is given by
The determinant of matrices involves six terms (rule of Sarrus). The more lengthy Leibniz formula generalizes these two formulae to all dimensions.
The determinant of a product of square matrices equals the product of their determinants:
or using alternate notation:
Adding a multiple of any row to another row, or a multiple of any column to another column, does not change the determinant. Interchanging two rows or two columns affects the determinant by multiplying it by . Using these operations, any matrix can be transformed to a lower (or upper) triangular matrix, and for such matrices, the determinant equals the product of the entries on the main diagonal; this provides a method to calculate the determinant of any matrix. Finally, the Laplace expansion expresses the determinant in terms of minors, that is, determinants of smaller matrices. This expansion can be used for a recursive definition of determinants (taking as starting case the determinant of a matrix, which is its unique entry, or even the determinant of a matrix, which is ), that can be seen to be equivalent to the Leibniz formula. Determinants can be used to solve using Cramer's rule, where the division of the determinants of two related square matrices equates to the value of each of the system's variables.
To choose the most appropriate algorithm for each specific problem, it is important to determine both the effectiveness and precision of all the available algorithms. The domain studying these matters is called numerical linear algebra. As with other numerical situations, two main aspects are the complexity of algorithms and their numerical stability.
Determining the complexity of an algorithm means finding or estimates of how many elementary operations such as additions and multiplications of scalars are necessary to perform some algorithm, for example, multiplication of matrices. Calculating the matrix product of two -by- matrices using the definition given above needs multiplications, since for any of the entries of the product, multiplications are necessary. The Strassen algorithm outperforms this "naive" algorithm; it needs only multiplications. Theoretically faster but impractical matrix multiplication algorithms have been developed, as have speedups to this problem using parallel algorithms or distributed computation systems such as MapReduce.
In many practical situations, additional information about the matrices involved is known. An important case concerns sparse matrix, that is, matrices whose entries are mostly zero. There are specifically adapted algorithms for, say, solving linear systems for sparse matrices , such as the conjugate gradient method.
An algorithm is, roughly speaking, numerically stable if little deviations in the input values do not lead to big deviations in the result. For example, one can calculate the inverse of a matrix by computing its adjugate matrix:
However, this may lead to significant rounding errors if the determinant of the matrix is very small. The matrix norm can be used to capture the condition number of linear algebraic problems, such as computing a matrix's inverse.
The LU decomposition factors matrices as a product of lower () and an upper triangular matrices (). Once this decomposition is calculated, linear systems can be solved more efficiently by a simple technique called forward and back substitution. Likewise, inverses of triangular matrices are algorithmically easier to calculate. The Gaussian elimination is a similar algorithm; it transforms any matrix to row echelon form. Both methods proceed by multiplying the matrix by suitable elementary matrices, which correspond to permuting rows or columns and adding multiples of one row to another row. Singular value decomposition (SVD) expresses any matrix as a product , where and are unitary matrix and is a diagonal matrix.
The eigendecomposition or diagonalization expresses as a product , where is a diagonal matrix and is a suitable invertible matrix. If can be written in this form, it is called diagonalizable. More generally, and applicable to all matrices, the Jordan decomposition transforms a matrix into Jordan normal form, that is to say matrices whose only nonzero entries are the eigenvalues to of , placed on the main diagonal and possibly entries equal to one directly above the main diagonal, as shown at the right. Given the eigendecomposition, the th power of (that is, -fold iterated matrix multiplication) can be calculated via
and the power of a diagonal matrix can be calculated by taking the corresponding powers of the diagonal entries, which is much easier than doing the exponentiation for instead. This can be used to compute the matrix exponential , a need frequently arising in solving linear differential equations, and square roots of matrices. To avoid numerically condition number situations, further algorithms such as the Schur decomposition can be employed.
Matrices whose entries are , and more generally, matrices with entries in a ring are widely used in mathematics. Rings are a more general notion than fields in that a division operation need not exist. The very same addition and multiplication operations of matrices extend to this setting, too. The set (also denoted ) of all square -by- matrices over is a ring called matrix ring, isomorphic to the endomorphism ring of the left -module . If the ring is commutative ring, that is, its multiplication is commutative, then the ring is also an associative algebra over . The determinant of square matrices over a commutative ring can still be defined using the Leibniz formula; such a matrix is invertible if and only if its determinant is invertible in , generalizing the situation over a field , where every nonzero element is invertible. Matrices over are called supermatrix.
Matrices do not always have all their entries in the same ring– or even in any ring at all. One special but common case is block matrix, which may be considered as matrices whose entries themselves are matrices. The entries need not be square matrices, and thus need not be members of any ring; but in order to multiply them, their sizes must fulfill certain conditions: each pair of submatrices that are multiplied in forming the overall product must have compatible sizes.
These properties can be restated more naturally: the category of matrices with entries in a field with multiplication as composition is equivalent to the category of finite-dimensional and linear maps over this field.
More generally, the set of matrices can be used to represent the -linear maps between the free modules and for an arbitrary ring with unity. When composition of these maps is possible, and this gives rise to the matrix ring of matrices representing the endomorphism ring of .
Any property of square matrices that is preserved under matrix products and inverses can be used to define a matrix group. For example, the set of all matrices whose determinant is form a group called the special linear group of degree . The set of orthogonal matrices, determined by the condition
form the orthogonal group. Every orthogonal matrix has determinant or . Orthogonal matrices with determinant form a group called the special orthogonal group.
Every finite group is isomorphic to a matrix group, as one can see by considering the regular representation of the symmetric group. General groups can be studied using matrix groups, which are comparatively well understood, using representation theory.See any reference in representation theory or group representation.
The determinant of an square matrix with entries in a commutative semiring cannot be defined in general because the definition would involve additive inverses of semiring elements. What plays its role instead is the pair of positive and negative determinants
Let be a monoidal category satisfying the following two conditions:
Complex numbers can be represented by particular real 2-by-2 matrices via
under which addition and multiplication of complex numbers and matrices correspond to each other. For example, 2-by-2 rotation matrices represent the multiplication with some complex number of absolute value 1, as above. A similar interpretation is possible for and in general.
In game theory and economics, the payoff matrix encodes the payoff for two players, depending on which out of a given (finite) set of strategies the players choose. The expected outcome of the game, when both players play mixed strategy, is obtained by multiplying this matrix on both sides by vectors representing the strategies. The minimax theorem central to game theory is closely related to the duality theory of linear programs, which are often formulated in terms of matrix-vector products.
Early encryption techniques such as the Hill cipher also used matrices. However, due to the linear nature of matrices, these codes are comparatively easy to break. Computer graphics uses matrices to represent objects; to calculate transformations of objects using affine rotation matrix to accomplish tasks such as projecting a three-dimensional object onto a two-dimensional screen, corresponding to a theoretical camera observation; and to apply image convolutions such as sharpening, blurring, edge detection, and more. Matrices over a polynomial ring are important in the study of control theory.
Chemistry makes use of matrices in various ways, particularly since the use of quantum theory to discuss chemical bond and spectroscopy. Examples are the overlap matrix and the Fock matrix used in solving the Roothaan equations to obtain the molecular orbitals of the Hartree–Fock method.
Another matrix frequently used in geometrical situations is the Jacobi matrix of a differentiable map . If denote the components of , then the Jacobi matrix is defined as
If , and if the rank of the Jacobi matrix attains its maximal value , is locally invertible at that point, by the implicit function theorem.. For a more advanced, and more general statement see .
Partial differential equations can be classified by considering the matrix of coefficients of the highest-order differential operators of the equation. For elliptic partial differential equations this matrix is positive definite, which has a decisive influence on the set of possible solutions of the equation in question.
The finite element method is an important numerical method to solve partial differential equations, widely applied in simulating complex physical systems. It attempts to approximate the solution to some equation by piecewise linear functions, where the pieces are chosen concerning a sufficiently fine grid, which in turn can be recast as a matrix equation.. See also stiffness method.
Statistics also makes use of matrices in many different forms. Descriptive statistics is concerned with describing data sets, which can often be represented as data matrices, which may then be subjected to dimensionality reduction techniques. The covariance matrix encodes the mutual variance of several . Another technique using matrices are linear least squares, a method that approximates a finite set of pairs , by a linear function
which can be formulated in terms of matrices, related to the singular value decomposition of matrices.
Random matrix are matrices whose entries are random numbers, subject to suitable probability distributions, such as matrix normal distribution. Beyond probability theory, they are applied in domains ranging from number theory to physics.
Linear transformations and the associated symmetry play a key role in modern physics. For example, elementary particles in quantum field theory are classified as representations of the Lorentz group of special relativity and, more specifically, by their behavior under the spin group. Concrete representations involving the Pauli matrices and more general gamma matrices are an integral part of the physical description of , which behave as . For the three lightest , there is a group-theoretical representation involving the special unitary group SU(3); for their calculations, physicists use a convenient matrix representation known as the Gell-Mann matrices, which are also used for the SU(3) gauge group that forms the basis of the modern description of strong nuclear interactions, quantum chromodynamics. The Cabibbo–Kobayashi–Maskawa matrix, in turn, expresses the fact that the basic quark states that are important for are not the same as, but linearly related to the basic quark states that define particles with specific and distinct .
Another matrix serves as a key tool for describing the scattering experiments that form the cornerstone of experimental particle physics: Collision reactions such as occur in particle accelerators, where non-interacting particles head towards each other and collide in a small interaction zone, with a new set of non-interacting particles as the result, can be described as the scalar product of outgoing particle states and a linear combination of ingoing particle states. The linear combination is given by a matrix known as the S-matrix, which encodes all information about the possible interactions between particles.
The Jones calculus models the polarization of a light source as a vector, and the effects of on this polarization vector as a matrix.
This use of the term matrix in mathematics (an English word for "womb" in the 19th century, from Latin, as well as a jargon word in printing, in biology and in geology) was coined by James Joseph Sylvester in 1850,The earliest published example is J. J. Sylvester (1850) "Additions to the articles in the September number of this journal, 'On a new class of theorems,' and on Pascal's theorem," The London, Edinburgh, and Dublin Philosophical Magazine and Journal of Science, 37: 363-370. From page 369: "For this purpose, we must commence, not with a square, but with an oblong arrangement of terms consisting, suppose, of m lines and n columns. This does not in itself represent a determinant, but is, as it were, a Matrix out of which we may form various systems of determinants ... " who understood a matrix as an object giving rise to several determinants today called minors, that is to say, determinants of smaller matrices that derive from the original one by removing columns and rows. In an 1851 paper, Sylvester explains:
Arthur Cayley published a treatise on geometric transformations using matrices that were not rotated versions of the coefficients being investigated as had previously been done. Instead, he defined operations such as addition, subtraction, multiplication, and division as transformations of those matrices and showed the associative and distributive properties held. Cayley investigated and demonstrated the non-commutative property of matrix multiplication as well as the commutative property of matrix addition. Early matrix theory had limited the use of arrays almost exclusively to determinants and Cayley's abstract matrix operations were revolutionary. He was instrumental in proposing a matrix concept independent of equation systems. In 1858, Cayley published his A memoir on the theory of matrices in which he proposed and demonstrated the Cayley–Hamilton theorem.
The English mathematician Cuthbert Edmund Cullis was the first to use modern bracket notation for matrices in 1913 and he simultaneously demonstrated the first significant use of the notation to represent a matrix where refers to the th row and the th column.
The modern study of determinants sprang from several sources. number theory problems led Gauss to relate coefficients of , that is, expressions such as , and in three dimensions to matrices. Eisenstein further developed these notions, including the remark that, in modern parlance, are non-commutative. Cauchy was the first to prove general statements about determinants, using as the definition of the determinant of a matrix the following: replace the powers by in the polynomial
where denotes the multiplication of the indicated terms. He also showed, in 1829, that the of symmetric matrices are real. Jacobi studied "functional determinants"—later called Jacobi determinants by Sylvester—which can be used to describe geometric transformations at a local (or infinitesimal) level, see above. Kronecker's Vorlesungen über die Theorie der Determinanten and Karl Weierstrass's Zur Determinantentheorie, both published in 1903, first treated determinants , as opposed to previous more concrete approaches such as the mentioned formula of Cauchy. At that point, determinants were firmly established.
Many theorems were first established for small matrices only, for example, the Cayley–Hamilton theorem was proved for matrices by Cayley in the aforementioned memoir, and by Hamilton for matrices. Georg Frobenius, working on , generalized the theorem to all dimensions (1898). Also at the end of the 19th century, the Gauss–Jordan elimination (generalizing a special case now known as Gauss elimination) was established by Wilhelm Jordan. In the early 20th century, matrices attained a central role in linear algebra, partially due to their use in the classification of the hypercomplex number systems of the previous century.
The inception of matrix mechanics by Heisenberg, Max Born and Pascual Jordan led to studying matrices with infinitely many rows and columns. Later, von Neumann carried out the mathematical formulation of quantum mechanics, by further developing functional analytic notions such as on , which, very roughly speaking, correspond to Euclidean space, but with an infinity of Hamel dimension.
Bertrand Russell and Alfred North Whitehead in their Principia Mathematica (1910–1913) use the word "matrix" in the context of their axiom of reducibility. They proposed this axiom as a means to reduce any function to one of lower type, successively, so that at the "bottom" (0 order) the function is identical to its extension:Whitehead, Alfred North; and Russell, Bertrand (1913) Principia Mathematica to *56, Cambridge at the University Press, Cambridge UK (republished 1962) cf page 162ff.
For example, a function of two variables and can be reduced to a collection of functions of a single variable, such as , by "considering" the function for all possible values of "individuals" substituted in place of a variable . And then the resulting collection of functions of the single variable , that is, , can be reduced to a "matrix" of values by "considering" the function for all possible values of "individuals" substituted in place of variable :
Alfred Tarski in his 1941 Introduction to Logic used the word "matrix" synonymously with the notion of truth table as used in mathematical logic.
+Overview of a matrix size
Notation
Basic operations
Addition
Scalar multiplication
Transpose
Matrix multiplication
Row operations
These operations are used in several ways, including solving and finding with Gauss elimination and Gauss–Jordan elimination, respectively.
Submatrix
Linear equations
Linear transformations
Shear mapping m = 1.25. Reflection through the vertical axis r = 3/2 Scalingby a factor of 3/2 Rotation matrix /6 = 30°
Square matrix
Main types
>
Diagonal and triangular matrix
Identity matrix
Symmetric or skew-symmetric matrix
Invertible matrix and its inverse
Definite matrix
A symmetric real matrix is called positive-definite if the associated quadratic form
has a positive value for every nonzero vector in . If yields only negative values then is negative-definite; if does produce both negative and positive values then is indefinite. If the quadratic form yields only non-negative values (positive or zero), the symmetric matrix is called positive-semidefinite (or if only non-positive values, then negative-semidefinite); hence the matrix is indefinite precisely when it is neither positive-semidefinite nor negative-semidefinite.
Points such that (Ellipse) Points such that (Hyperbola)
Orthogonal matrix
Main operations
Trace
Determinant
Eigenvalues and eigenvectors
Computational aspects
Decomposition
Abstract algebraic aspects and generalizations
Matrices with entries in a field or ring
Relationship to linear maps
Matrix groups
Infinite matrices
Empty matrix
Matrices with entries in a semiring
where the sums are taken over and odd permutations, respectively.
Matrices with entries in a category
Then, the bicategory of -matrices is as follows:
In general, the bicategory of matrices need not be a strict 2-category. For example, the composition of 1-morphisms may not be associative in the usual strict sense, but only up to coherent isomorphism.
Applications
Graph theory
Analysis and geometry
Probability theory and statistics
Quantum mechanics and particle physics
Normal modes
Geometrical optics
Electronics
History
Other historical usages of the word "matrix" in mathematics
See also
Notes
Mathematical references
Physics references
Historical references
Further reading
External links
|
|